﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EasyStudy.UI
{
    public partial class FrmDelay : Form
    {
        public FrmDelay()
        {
            InitializeComponent();

            cmbUnit.SelectedIndex = 0;
        }

        public int Value 
        {
            get {
                return Convert.ToInt32(numTime.Value);
            }
        }

        public String Unit
        {
            get
            {
                return cmbUnit.SelectedItem.ToString();
            }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            Close();
        }
    }
}
